package com.wang.tool.delivery.req;

import com.wang.tool.delivery.cache.module.RenderStrategyEnum;

import java.util.List;

/**
 * @author shaopeng
 * @date 2022/9/4
 */
public class ModuleRequest{

    /**
     * 区块id
     */
    private String moduleId;

    /**
     * 指定渲染模式
     * 默认是根据区块走
     *
     * @see RenderStrategyEnum
     */
    private String renderStrategy;

    /**
     * 不指定此参数,则会加载区块所有资源位骨架
     * 指定此参数则仅会加载指定区块
     * 指定需要加载的资源位
     */
    private List<ResourceRequest> resourceRequests;


    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }


    public String getRenderStrategy() {
        return renderStrategy;
    }

    public void setRenderStrategy(String renderStrategy) {
        this.renderStrategy = renderStrategy;
    }

    public List<ResourceRequest> getResourceRequests() {
        return resourceRequests;
    }

    public void setResourceRequests(List<ResourceRequest> resourceRequests) {
        this.resourceRequests = resourceRequests;
    }

}
